package com.java.mybatis.controller;

import com.java.mybatis.entity.Leavewarehouse;
import com.java.mybatis.service.LeavewarehouseService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Leavewarehouse)表控制层
 *
 * @author makejava
 * @since 2021-01-15 17:10:28
 */
@Controller
@RequestMapping("/leavewarehouse/")
public class LeavewarehouseController {
    /**
     * 服务对象
     */
    @Resource
    private LeavewarehouseService leavewarehouseService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Leavewarehouse selectOne(Integer id) {
        return this.leavewarehouseService.queryById(id);
    }

}